<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class tips extends rows{
 	function init(){
 		$this->tableName="sn_tips";
 		$this->col["tid"]   = new column("tid",dataCheck::INTEGER);
 		$this->col["ttitle"] = new column("ttitle",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["ttype"]  = new column("ttype",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["tcontent"]  = new column("tcontent",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["tuid"]  = new column("tuid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["ttime"]  = new column("ttime",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["tsendip"]  = new column("tsendip",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["tclicks"]  = new column("tclicks",dataCheck::INTEGER);
 		$this->col["tstate"]  = new column("tstate",dataCheck::INTEGER);
 	} 	 	
 }
